require('../../assets/css/index.js')
require('../../assets/fonts/font/iconfont.css')
require('../../assets/lib/swiper/swiper-bundle.css')
let Swiper = require('../../assets/lib/swiper/swiper-bundle.js')
require('../../utils/local.js')
let https = require('../../utils/https.js')

// 引入公共js
let dom = require('../../utils/dom.js')
const local = require('../../utils/local.js')
require('./concern.less')

dom.bMenu('sports')
dom.tMenu('course')
dom.isLogin();

dom.ready(function () {
    function getconcern() {
        https.get('/api/circles/opinionList', {}, function (res) {
            if (res.errno == 0) {
                console.log(res);
                res.data.map(function (v, i) {
                  let allArr=[
                    'http://47.96.154.185:3701/circlesImg/1664333484570.jpg',
                    'http://47.96.154.185:3701/portrait/1664333396085.jpg',
                     'http://47.96.154.185:3701/portrait/1664333419146.jpg'
                ]

            
                    if (i==3) {
                        console.log(v);
                        dom.getEle('#concern1').innerHTML = `
                        <ul>
                        <li id="concern1"><img src="${allArr[0]}" alt="" ><h1>${v.content}</h1> <h2>已关注</h2></li>
                        <li id="concern1"><img src="${allArr[1]}" alt="" ><h1>${v.content}</h1> <h2>已关注</h2></li>
                        <li id="concern1"><img src="${allArr[2]}" alt="" ><h1>${v.content}</h1> <h2>已关注</h2></li>
                     </ul>
                         `
                       
                    }
                })
            }
        })
    }
    getconcern()
})